package com.itheima.socket.tcp.demo05;

import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.concurrent.TimeUnit;

/**
 * 客户端没有向服务端发送数据
 */
public class ClientDemo01 {

    public static void main(String[] args) throws IOException, InterruptedException {

        // 1. 创建Socket对象
        Socket socket = new Socket(InetAddress.getByName("169.254.106.206") , 8080) ;

        // 2. 让线程休眠60s
        TimeUnit.SECONDS.sleep(60);

        // 3. 释放资源
        socket.close();

    }

}
